/*
 *@description: 创建数据库连接池
 *@Author:@rennan
 *@Date:2024-06-27 10:54:43
 *@version: V1.0.0
*/

//导入mysql
const mysql = require('mysql2/promise')

//创建数据库连接池
const sql = mysql.createPool({
  host: '106.14.89.95',
  port: 3306,
  user: 'briup',
  password: 'briupSH',
  database: 'briup-ej'
})

//导出数据库连接池
module.exports = sql
